//functors are an object has  map method
//array

const dragons = [
  { name: "Fluffykins", health: 70 },
  { name: "Deathlord", health: 700 },
  { name: "LittlePizza", health: 2 },
];

const names = dragons.map((dragon) => dragon.name);


console.log(names)